import { NgModule } from "@angular/core"
import { Routes, RouterModule } from "@angular/router"

const routes: Routes = [
  // {
  //   path: "login",
  //   component: LoginComponent,
  // },
  // {
  //   path: "register",
  //   component: RegisterComponent,
  // },
  // {
  //   path: "**",
  //   component: LoginComponent,
  // },
  {
    path: "**",
    pathMatch: "full",
    redirectTo: "/user/login",
  },
  {
    path: "",
    pathMatch: "full",
    redirectTo: "/user/login",
  },
]
@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule],
})
export class AppRoutingModule {}
